/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* 容器样式 */
.accordion-container {
    width: 100%;
    max-width: 600px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 标题样式 */
.accordion-title {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

/* 手风琴样式 */
.accordion {
    /* 手风琴容器 */
}

/* 手风琴项 */
.accordion-item {
    border-bottom: 1px solid #e9ecef;
}

.accordion-item:last-child {
    border-bottom: none;
}

/* 手风琴头部按钮 */
.accordion-header {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background: #e9ecef;
}

.accordion-header:focus {
    outline: none;
    background: #dee2e6;
}

/* 手风琴内容区域 */
.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: white;
}

/* 展开状态的内容区域 */
.accordion-item.active .accordion-content {
    max-height: 500px; /* 设置一个足够大的值以容纳内容 */
}

/* 内容内部样式 */
.accordion-content p,
.accordion-content ul {
    padding: 15px 20px;
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

.accordion-content ul {
    padding-left: 40px;
    padding-bottom: 20px;
}

.accordion-content li {
    margin-bottom: 8px;
}

.accordion-content li:last-child {
    margin-bottom: 0;
}

/* 图标样式 */
.accordion-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.3s ease;
    display: inline-block;
}

/* 展开状态的图标 */
.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .accordion-container {
        margin: 10px;
        max-width: 100%;
    }
    
    .accordion-header {
        padding: 12px 16px;
        font-size: 15px;
    }
    
    .accordion-content p,
    .accordion-content ul {
        padding: 12px 16px;
    }
    
    .accordion-content ul {
        padding-left: 30px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .accordion-title {
        padding: 15px;
        font-size: 18px;
    }
    
    .accordion-header {
        padding: 10px 14px;
        font-size: 14px;
    }
}